package com.wangyadong.hobby.nio.charter1;

import javax.xml.crypto.Data;
import java.nio.ByteBuffer;

public class Work {


    public void doWork() {
        Fetcher fetcher = new MyFetcher();
        fetcher.fetcher(new FetcherCallBack() {
            @Override
            public void onData(Data date) {

            }

            @Override
            public void onError(Throwable throwable) {

            }
        });
    }

    public static void main(String[] args) {
         //生成
        ByteBuffer allocate = ByteBuffer.allocate(1024);
    }
}
